package com.yanqu.road.web.timer;

import com.yanqu.road.server.manger.ServerListMgr;
import com.yanqu.road.utils.date.DateHelper;
import com.yanqu.road.utils.executor.GeneralTask;
import com.yanqu.road.web.WebServer;
import com.yanqu.road.web.mgr.AllActivityMainInfoMgr;

public class AllActivityReloadTask extends GeneralTask {

    @Override
    public void doRun() {
        AllActivityMainInfoMgr.reloadActivityData();


        try{
            if (WebServer.getInstance().isUserCenter()) {
                if(DateHelper.getHours() == 0 || DateHelper.getHours() == 12) {
                    ServerListMgr.reloadServerList();
                }
            }
        }catch (Exception e){

        }
    }
}
